<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //set对于重复值的判断基本遵循严格相等
    const s=new Set([NaN,1,NaN])
    console.log(s);
    const set=new Set([{},{}])
    console.log(set);
    //set使用场景
    //数组或字符串去重
    //不需要通过下标访问，只需要遍历时
    //需要用到set的方法
  </script>
</body>
</html>